GtkApplication: track screensaver state
authorMatthias Clasen <mclasen@redhat.com>
Thu, 30 Aug 2018 05:06:51 +0000 (01:06 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 31 Aug 2018 02:53:36 +0000 (22:53 -0400)
commitb82a32676b7d028a62c1649c58ce19678c74c09e
tree040cadc04e331f784bf773f6ccfaf2e1febe4ed8
parentd7228ae0255b789beeaffa7ac2d7c602c05b1ab0
GtkApplication: track screensaver state

A number of applications want to track the state of the screensaver.
Make this information available as a boolean property. We only listen
for state changes when ::register-session is set to TRUE.

This is implemented for unsandboxed D-Bus access by talking
directly to org.gnome.ScreenSaver or org.freedesktop.ScreenSaver,
and for sandboxed D-Bus by using a (new) portal API.
A Quartz implementation is missing.
gtk/gtkapplication-dbus.c
gtk/gtkapplication.c
gtk/gtkapplicationprivate.h
gtk/gtkprivate.h